﻿using Microsoft.Extensions.Logging;
using System.Collections.Generic;

namespace Micro.Extensions.Log
{
    public class MicroLoggerOptions
    {
        /// <summary>
        /// 是否前台打印
        /// </summary>
        public bool Console { get; set; } = false;

        /// <summary>
        /// 应用Id
        /// </summary>
        public string ApplicationId { get; set; }

        /// <summary>
        /// 本地缓冲队列值
        /// </summary>
        public int MaxQueuedMessageCount { get; set; } = 100000;

        /// <summary>
        /// 本地日志目录
        /// </summary>
        public string LocalPath { get; set; } = "/var/logs/";

        /// <summary>
        /// 日志级别
        /// </summary>
        public IDictionary<string, LogLevel> LogLevel { get; set; } = new Dictionary<string, LogLevel>();
    }
}
